package itsm.isperp.module.entity.configuration;

import itsm.isperp.framework.domain.IBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 配置关系实体
 * 
 * @author lizx
 * @date 2014-09-23 16:24
 */
@Entity
@Table(name = "conf_ci_relation_use_propety")
public class ConfCiRelationUsePropety implements IBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	//
	@Id
	protected String id;

	//
	@Column
	protected String fromPropertyId;
	//
	@Column
	protected String toPropertyId;

	//
	@Column
	protected String relationTypeId;

	// 1.a->b;0.b->a;-1.不写入;
	@Column
	Integer usePropertyType;

	// 表示是否用于构建关系
	@Column
	protected boolean useForRelation;

	@Column
	protected Integer orderNum;

	public Integer getUsePropertyType() {
		return usePropertyType;
	}

	public void setUsePropertyType(Integer usePropertyType) {
		this.usePropertyType = usePropertyType;
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public String getFromPropertyId() {
		return fromPropertyId;
	}

	public void setFromPropertyId(String fromPropertyId) {
		this.fromPropertyId = fromPropertyId;
	}

	public String getToPropertyId() {
		return toPropertyId;
	}

	public void setToPropertyId(String toPropertyId) {
		this.toPropertyId = toPropertyId;
	}

	public String getRelationTypeId() {
		return relationTypeId;
	}

	public void setRelationTypeId(String relationTypeId) {
		this.relationTypeId = relationTypeId;
	}

	public boolean getUseForRelation() {
		return useForRelation;
	}

	public void setUseForRelation(boolean useForRelation) {
		this.useForRelation = useForRelation;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

}
